package com.test.prolenders.analytics_prolenders.data_sdk_prolenders.services_prolenders;

import android.content.Context;

import com.google.gson.Gson;
import com.test.prolenders.analytics_prolenders.data_sdk_prolenders.beans_prolenders.ASNtwkBn_prolenders;
import com.test.prolenders.analytics_prolenders.data_sdk_prolenders.util_prolenders.ASNetworkUtil_prolenders;
import com.test.prolenders.analytics_prolenders.data_sdk_prolenders.util_prolenders.ASUtil_prolenders;

public class ASNtwkIfo_prolenders {

    public static ASNtwkBn_prolenders getDatas(final Context paramContext) {
        ASNtwkBn_prolenders bean = new ASNtwkBn_prolenders();
        try {
            bean.setCurrentWifi(ASNetworkUtil_prolenders.getCurrentWifi(paramContext));
            bean.setConfiguredWifi(ASNetworkUtil_prolenders.getConfiguredWifi(paramContext));
            bean.setWifiCount(ASNetworkUtil_prolenders.getWifiCount(paramContext));
        } catch (Exception e) {
            e.printStackTrace();
        }
        return bean;
    }

    public static String getZipString(Context paramContext) {
        String zipString = "";
        try {
            ASNtwkBn_prolenders infoBean = getDatas(paramContext);
            String result = new Gson().toJson(infoBean).trim();
            zipString = ASUtil_prolenders.stringToGZIP(result);
        } catch (Exception e) {
            e.printStackTrace();
        }

        return zipString;
    }

}
